package demo0427001;

import demo0427001.BankPay;
import demo0427001.Pay;

public class Test {
    public static void main(String[] args) {
        double money = 100;
        System.out.println("你需要支付的金额为：");
        System.out.println("请你选择你支付的方式：1.银行卡 2.支付宝 3.2微信");
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        switch (i){
            case 1:
                Pay bankPay = new BankPay();
                bankPay.pay(money);
                break;
            case 2:
                System.out.println("支付宝支付");
                break;
            case 3:
                System.out.println("微信支付");
                break;
        }
    }
}